/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const informationRouter = {
  path: '/information',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Information',
  alwaysShow: true,
  meta: {
    title: '信息管理',
    icon: 'information',
    permission: '/information'
  },
  children: [
    {
      path: 'grade',
      component: () => import('@/views/information/grade'),
      name: 'Grade',
      meta: { title: '年级管理', icon: 'grade', noCache: true, permission: '/information/grade' }
    },
    {
      path: 'classes',
      component: () => import('@/views/information/classes'),
      name: 'Classes',
      meta: { title: '班级管理', icon: 'classes', noCache: true, permission: '/information/classes' }
    },
    {
      path: 'teacher',
      component: () => import('@/views/information/teacher'),
      name: 'Teacher',
      meta: { title: '教师管理', icon: 'teacher', noCache: true, permission: '/information/teacher' }
    },
    {
      path: 'student',
      component: () => import('@/views/information/student'),
      name: 'Student',
      meta: { title: '学生管理', icon: 'student', noCache: true, permission: '/information/student' }
    },
    {
      path: 'member',
      component: () => import('@/views/information/member'),
      name: 'Member',
      meta: { title: '公众号粉丝管理', icon: 'wechat', noCache: true, permission: '/information/member' }
    },
    {
      path: 'point',
      component: () => import('@/views/information/point'),
      name: 'Point',
      meta: { title: '积分记录管理', icon: 'point', noCache: true, permission: '/information/point' }
    }
  ]
}

export default informationRouter
